public class ChargedItem extends Object implements XMLMarshallable
This class represents a charged item generated by the SAP CC system during the charging process. This data record results from the use of a customer service.
It contains:
fieldsThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargedItem">
<xs:complexType>
<xs:sequence>
<xs:element ref="chargedItemField" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="key" type="xs:int" use="required" />
<xs:attribute name="chargedItemClassId" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
| Modifier and Type | Class and Description |
|---|---|
static class |
ChargedItem.ChargedItemField
This class represents a field of a
charged item generated by the SAP CC system during the charging process. |
static class |
ChargedItem.ChargedItemFieldType
This enumeration lists the possible data types for the fields contained in a
charged item. |
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The XML tag name of this object: "chargedItem".
|
| Constructor and Description |
|---|
ChargedItem()
Builds a charged item with no charged item class identifier and no field.
|
ChargedItem(String chargedItemClassId,
int initialFieldListSize)
Builds a charged item with a charged item class identifier and no field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getChargedItemClassId()
Gets the identifier of the charged item class corresponding to the charged item.
|
List<ChargedItem.ChargedItemField> |
getFields()
Gets the list of
fields of the charged item. |
Integer |
getKey()
Gets the numeric key of the charged item.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setChargedItemClassId(String chargedItemClassId)
Sets the identifier of the charged item class corresponding to the charged item.
|
void |
setKey(Integer key)
Sets the numeric key of the charged item.
|
public static final String TAG_NAME
public ChargedItem()
public ChargedItem(String chargedItemClassId, int initialFieldListSize)
chargedItemClassId - The charged item class identifier of the charged iteminitialFieldListSize - The initial size for the list of charged item fieldspublic Integer getKey()
public void setKey(Integer key)
key - The numeric key of the charged itempublic String getChargedItemClassId()
public void setChargedItemClassId(String chargedItemClassId)
chargedItemClassId - The identifier of the charged item class corresponding to the charged itempublic List<ChargedItem.ChargedItemField> getFields()
fields of the charged item.fields of the charged itempublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into